package com.leng.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.leng.VO.UserVO;
import com.leng.entity.User;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author leng
 * @since 2022-08-21
 */
public interface UserService extends IService<User> {
    //多表联查+分页
    Page<User> getUserByPage(@Param("page") Page<User> page, @Param("userVO") UserVO userVO);
    //导出用户信息    HttpServletResponse:响应
    public void exportExcel(HttpServletResponse response,List<User>users) throws IOException;
    //查询所有
    List<User> getUserListToExcel(@Param("userVO") UserVO userVO);
    //登录
    String login(String username, String password);
    //查询用户名
    User getUserByUsername(String username);
}
